package com.housediyadmin.model
{
	import com.housediyadmin.vo.Building;
	
	import mx.collections.ArrayCollection;
	
	import org.robotlegs.mvcs.Actor;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/1
	 */	
	public class BuildingModel extends Actor
	{
		[Bindable]
		public var buildingArray:ArrayCollection;
		
		[Bindable]
		public var buildingIds:ArrayCollection = new ArrayCollection();
		
		[Bindable]
		public var buildingId:int;
		
		[Bindable]
		public var selectedBuilding:Building;
		
		public var selectedBuildingArr:Array=new Array();
		
		public function BuildingModel()
		{
			super();
		}
		
		public function updateBuildingModel(buildingArray:ArrayCollection = null):void
		{
			this.buildingArray = buildingArray;
		}
		
		public function updateBuildingIds(buildingIds:ArrayCollection):void
		{
			this.buildingIds = buildingIds;
		}
	}
}